/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cl.innogen.main;

import cl.innovision.generation.GeneradorServicios;
import cl.innovision.vo.Cursor;
import cl.innovision.vo.InParameters;
import cl.innovision.vo.OutParameters;
import cl.innovision.vo.Parameter;
import cl.innovision.vo.Procedure;
import java.util.ArrayList;

/**
 *
 * @author PATO
 */
public class InnoGen {

    /**
     * @param args the command line arguments
     */
    
    public static void main(String[] args) {
        // TODO code application logic here
       /* Parameter pi1 =new Parameter("campo1", "String","VARCHAR2");
        Parameter pi2 =new Parameter("campo2", "int","NUMBER");
        
        Parameter c1 =new Parameter("columna1", "String","VARCHAR2");
        Parameter c2 =new Parameter("columna2", "int","NUMBER");
        Parameter c3 =new Parameter("columna3", "int","NUMBER");
        Parameter c4 =new Parameter("columna4", "int","NUMBER");
        
        Parameter po1 =new Parameter("campo3", "int","NUMBER");
        
        InParameters inp =new InParameters();
        inp.addParam(pi1);
        inp.addParam(pi2);
        
        Cursor rs =new Cursor("procedimiento1Rs");
        rs.addRs(c1);
        rs.addRs(c2);
        rs.addRs(c3);
        rs.addRs(c4);
        
        OutParameters outp=new OutParameters();
        outp.addCursor(rs);
        outp.addParam(po1);
        
        
        Procedure procedure =new Procedure(null, null, "procedimiento1");
        procedure.setInParam(inp);
        procedure.setOutParam(outp);
        String genDir = "C:\\Users\\PATO\\Documents\\NetBeansProjects\\InnoGen\\";
        String project = "demo";
        String modulo = "test";
        Generation g=new Generation(genDir, project, modulo);
        g.genIN(procedure);
        g.genRS(procedure);
        g.genOUT(procedure);
        ArrayList<Procedure> procedures = new ArrayList<Procedure>();
        procedures.add(procedure);
     //   g.genDAO(procedures);
       // g.genEJB(procedures);
    }
   
        */
    }
}
